/*
 * @Author: szx
 * @Date: 2023-03-28 16:59:22
 * @LastEditTime: 2023-03-28 17:13:09
 * @Description:
 * @FilePath: \learn\fullstackopen\part1\part1\src\components\Notification.jsx
 */
const Notification = ({ notification }) => {
    if (notification === null) return null;
    console.log(<div className={notification.type}>{notification.text}</div>)
    return (
        <div className={notification.type}>{notification.text}</div>
    );
};

export default Notification;
